home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8490 < prev    next >
Encoding:
Text File  |  1996-08-05  |  829 b   |  36 lines

  1. Path: dispatch.news.demon.net!demon!andyandy.demon.co.uk
  2. From: andy@andyandy.demon.co.uk (Andy Turner)
  3. Newsgroups: comp.lang.c++
  4. Subject: overloading function problem
  5. Date: Fri, 16 Feb 1996 12:54:04 GMT
  6. Message-ID: <824475233.24366@andyandy.demon.co.uk>
  7. NNTP-Posting-Host: andyandy.demon.co.uk
  8. X-NNTP-Posting-Host: andyandy.demon.co.uk
  9. X-Newsreader: Forte Agent .99b.112
  10.  
  11. I want to overload a function so that it has two versions but the
  12. arguments resolve to the same thing ie:
  13.  
  14.     private:
  15.         CEntry *GetEntry (UINT);
  16.         CEntry *GetEntry (ATOM);
  17.  
  18. the problem is that the ATOM is actually
  19.  
  20. #define ATOM UINT
  21.  
  22. or something like that, so it thinks I'm declaring the same function.
  23. Is there anyway of telling it the distinction? I've tried using 
  24.  
  25. #define STRICT
  26.  
  27. but it seems to have no effect.
  28.  
  29. AndyT
  30.  
  31. andy@andyandy.demon.co.uk
  32.  
  33.         
  34.  
  35.  
  36.